package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelNoticewayMapper;
import com.ktgj.hotel.domain.HotelNoticeway;
import com.ktgj.hotel.service.IHotelNoticewayService;

/**
 * 酒店通知渠道Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
@Service
public class HotelNoticewayServiceImpl implements IHotelNoticewayService 
{
    @Autowired
    private HotelNoticewayMapper hotelNoticewayMapper;

    /**
     * 查询酒店通知渠道
     * 
     * @param noticewayid 酒店通知渠道ID
     * @return 酒店通知渠道
     */
    @Override
    public HotelNoticeway selectHotelNoticewayById(Long noticewayid)
    {
        return hotelNoticewayMapper.selectHotelNoticewayById(noticewayid);
    }

    /**
     * 查询酒店通知渠道列表
     * 
     * @param hotelNoticeway 酒店通知渠道
     * @return 酒店通知渠道
     */
    @Override
    public List<HotelNoticeway> selectHotelNoticewayList(HotelNoticeway hotelNoticeway)
    {
        return hotelNoticewayMapper.selectHotelNoticewayList(hotelNoticeway);
    }

    /**
     * 新增酒店通知渠道
     * 
     * @param hotelNoticeway 酒店通知渠道
     * @return 结果
     */
    @Override
    public int insertHotelNoticeway(HotelNoticeway hotelNoticeway)
    {
        return hotelNoticewayMapper.insertHotelNoticeway(hotelNoticeway);
    }

    /**
     * 修改酒店通知渠道
     * 
     * @param hotelNoticeway 酒店通知渠道
     * @return 结果
     */
    @Override
    public int updateHotelNoticeway(HotelNoticeway hotelNoticeway)
    {
        return hotelNoticewayMapper.updateHotelNoticeway(hotelNoticeway);
    }

    /**
     * 批量删除酒店通知渠道
     * 
     * @param noticewayids 需要删除的酒店通知渠道ID
     * @return 结果
     */
    @Override
    public int deleteHotelNoticewayByIds(Long[] noticewayids)
    {
        return hotelNoticewayMapper.deleteHotelNoticewayByIds(noticewayids);
    }

    /**
     * 删除酒店通知渠道信息
     * 
     * @param noticewayid 酒店通知渠道ID
     * @return 结果
     */
    @Override
    public int deleteHotelNoticewayById(Long noticewayid)
    {
        return hotelNoticewayMapper.deleteHotelNoticewayById(noticewayid);
    }
}
